package cn.edu.fzu.homemaking.company.domain.entity;

import cn.edu.fzu.homemaking.company.domain.enums.StatusEnum;
import cn.edu.fzu.homemaking.company.domain.enums.UserTypeEnum;
import cn.edu.fzu.homemaking.company.domain.enums.SexEnum;
import com.alibaba.fastjson.annotation.JSONField;
import lombok.Data;

import java.math.BigDecimal;
import java.util.Date;

/**
 * 家政人员表
 * 
 * @author wanjie
 * @version 1.0
 */
@Data
public class CompanyUser {

    private Long         id;
    private Long         companyUserId;
    private Company      company;
    private Long         labelId;
    private UserTypeEnum type;
    private BigDecimal   salary;

    //邮箱
    private String       email;
    //密码
    @JSONField(serialize = false)
    private String       password;
    //姓名
    private String       name;
    //性别
    private SexEnum      sex;
    //出生年月
    private Date         birth;
    //手机号码
    private String       phone;
    //家庭地址
    private String       address;
    //人脸照片
    private String       faceUrl;
    //状态
    private StatusEnum   status;
    //创建时间
    private Date         createTime;
    //更新时间
    private Date         updateTime;

}
